package service.impl;

import bean.LostProduct;
import dao.ILostProductDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.ILostProductService;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class LostProductServiceImpl  implements ILostProductService {
    @Resource
    private ILostProductDao iLostProductDao;

    @Override
    public List<LostProduct> queryAll() {
        return iLostProductDao.queryAll();
    }

    @Override
    public LostProduct queryById(Integer l_id) {
        return iLostProductDao.queryById(l_id);
    }

    @Override
    public void add(LostProduct lostProduct) {
        iLostProductDao.add(lostProduct);
    }

    @Override
    public void update(LostProduct lostProduct) {

        iLostProductDao.update(lostProduct);
    }

    @Override
    public void delete(LostProduct lostProduct) {
        iLostProductDao.delete(lostProduct);
    }
    @Override
    public  LostProduct selectByName(String lost_name){
      return   iLostProductDao.selectByName(lost_name);
    };
}
